package bm.sg.jspeech.math;

class Rotator {
    private double real, imaginary;
    private int N;
    private Complex[] cpx;

    public Rotator(int N) {
        this.N = N;
        cpx = new Complex[N];
        for (int i = 0; i < N; i++) {
            real = Math.cos(2 * Math.PI * i / N);
            imaginary = Math.sin(2 * Math.PI * i / N);
            cpx[i] = new Complex(real, imaginary);
        }
    }

    public Complex[] getW() {
        return cpx;
    }

    /*
     * for(int i=0;i<N,i++) {
     * 
     * }
     */

}